<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
<meta name="keywords" content="{$SEO['keyword']}">
<meta name="description" content="{$SEO['description']}">
<link href="{CSS_PATH}style.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}link.css" rel="stylesheet" type="text/css" />
</head>
<body>
{template "content","header"}
<div class="main center w1024">
    <div class="w980 center">
        <!--left_bar-->
        <div class="col-left">
            <div class="_nav">
                <a href="{siteurl($siteid)}"><b>网站首页</b></a><span> &gt; </span><a href="{APP_PATH}index.php?m={ROUTE_M}&siteid={$siteid}">友情链接</a>
            </div>
            <div class="_cbox">
                <table border="0" width="100%" class="h34 _title _repx">
                    <tr>
                        <td width="25" class="_icon"><img src="{IMG_PATH}web/icon1.png" /></td>
                        <td class="_name">默认分类</td>
                        <td align="right">
                            <span class="_more"><a href="{APP_PATH}index.php?m=link&c=index&a=list_type&type_id=0&siteid={$siteid}" title="查看更多">更多...</a></span>
                        </td>
                    </tr>
                </table>
                <div class="_list">
                    <div class="tag_a">
                        {pc:link action="lists" typeid="0" siteid="$siteid" linktype="1" order="desc" num="6" return="dat"}
                        {loop $dat $v} <a href="{$v[url]}" title="{$v[name]}" target="_blank"><img src="{$v[logo]}" width="92" height="31" /></a> {/loop}
                        {/pc}
                    </div>
                    <div class="tag_a">
                        {pc:link action="lists" typeid="0" siteid="$siteid" linktype="0" order="desc" num="10" return="dat"}
                        {loop $dat $v} <a href="{$v[url]}" title="{$v[name]}"  target="_blank">{$v[name]} </a> {/loop}
                        {/pc}
                    </div>
                    {pc:link action="type_lists" listorder="desc" siteid="$siteid"}
                    {loop $data $type_v}
                    <h5>{$type_v[name]} <a href="{APP_PATH}index.php?m=link&c=index&a=list_type&type_id={$type_v[typeid]}&siteid={$siteid}" class="more">更多>></a></h5>
                    <div class="tag_a">
                        {pc:link action="lists" typeid="$type_v[typeid]" siteid="$siteid" linktype="1" order="desc" num="6" return="dat"}
                        {loop $dat $v} <a href="{$v[url]}" title="{$v[name]}" target="_blank"><img src="{$v[logo]}" width="92" height="31" /></a> {/loop}
                        {/pc}
                    </div>
                    <div class="tag_a">
                        {pc:link action="lists" typeid="$type_v[typeid]" siteid="$siteid" linktype="0" order="desc" num="10" return="dat"}
                        {loop $dat $v} <a href="{$v[url]}" title="{$v[name]}"  target="_blank">{$v[name]} </a> {/loop}
                        {/pc}
                    </div>
                    {/loop}
                    {/pc}
                    <!--pages-->
                </div>
            </div>
        </div>
        <!--right_bar-->
        <div class="col-auto">
            <!--广告228x90-->
            <div class="_rbox">
                <table border="0" width="100%" class="h34 _title">
                    <tr>
                        <td width="25" class="_icon"><img src="{IMG_PATH}web/icon10.png" /></td>
                        <td class="_name">友情链接分类</td>
                        <td align="right" class="_more"></td>
                    </tr>
                </table>
                <div class="_list">
                    <div class="tag_a">
                        <img src="{IMG_PATH}web/arrow2.png" />
                        <a href="{APP_PATH}index.php?m=link&c=index&a=list_type&type_id=0&siteid={$siteid}" title="默认分类">默认分类</a>
                        {pc:link action="type_lists" listorder="desc" siteid="$siteid"}
                        {loop $data $type_v}
                        <img src="{IMG_PATH}web/arrow2.png" />
                        <a href="{APP_PATH}index.php?m=link&c=index&a=list_type&type_id={$type_v[typeid]}&siteid={$siteid}" title="{$type_v[name]}">
                        {$type_v[name]}</a>
                        {/loop}
                        {/pc}
                    </div>
                </div>
            </div>
            <div class="bk10">
            </div>
            {if $setting[$siteid]['is_post']=='1'}
            <div class="txt_c">
                <a href="{APP_PATH}index.php?m=link&c=index&a=register&siteid={$siteid}" class="sqlj_btn"></a>
            </div>
            {/if}
        </div>
        <div class="_clear"></div>
        {template "content","border-b"}
    </div>
</div>
{template "content","footer-min"}
</body>
</html>
